//
//  GLEquipVV.m
//  QAQ打飞机
//
//  Created by admin on 15/9/1.
//  Copyright (c) 2015年 gl. All rights reserved.
//

#import "GLEquipVV.h"

@implementation GLEquipVV
+(id)equipWithType:(GLEquipType)equiptype area:(CGRect)gameArea size:(CGSize)size
{
    GLEquipVV *p =[[GLEquipVV alloc]init];
    p.equiptype =equiptype;
    p.EquipSize =size;
    CGFloat x =arc4random_uniform(gameArea.size.width-size.width)+size.width/2.0;
    CGFloat y=-size.height/2.0;
    p.EquipPoint=CGPointMake(x, y);
    switch (p.equiptype) {
        case knBomb:
            
            p.speed =arc4random_uniform(2)+2;
            break;
        case knBombHL:
            p.speed =arc4random_uniform(5)+3;
            break;
        case knBullet:
            p.speed =arc4random_uniform(2)+2;
            break;
        default:
            break;
    }
    p.EquipBlowp=NO;
    return p;

}
@end
